package com.heima.pojo.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用返回值对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {

    /**
     * 0代表成功  1代表失败
     */
    private Integer code;

    private String errorMessage;

    private T data;

}
